/**
 * Copyright &copy; 2016-2022 liuhangjun All rights reserved.
 */
package com.channelsharing.hongqu.portal.api.dao;

import com.channelsharing.common.dao.CrudDao;
import com.channelsharing.hongqu.portal.api.entity.Coupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 优惠券Dao接口
 * @author liuhangjun
 * @version 2018-06-07
 */
@Mapper
public interface CouponDao extends CrudDao<Coupon> {

    List<Coupon> findUsableList(@Param("goodsId") Long goodsId);

    List<Coupon> findUsableListByUser(@Param("goodsId") Long goodsId,@Param("userId")  Long userId);
}
